export default function($axios) {
  return {
    getConfig: () => $axios.get('/retailadmin/admin/getmenu'),
    getAppMenus: () => $axios.post('/retailadmin/admin/getmenu'),
    getImages: current =>
      $axios.get('/adminapi/img_matter/list', {
        params: {
          current
        }
      }),
    getIcons: type =>
      $axios.get('/adminapi/setting/getIconImg', {
        params: {
          type
        }
      }),
    upload: file =>
      $axios.post('/api/common/upload', {
        file
      })
  }
}
